export default [
  {
    path: '/appointment',
    component: resolve => require(['../views/appointment/Index'], resolve),
    meta: { title: '门诊就医' }
  },
  {
    path: '/appointment/tips',
    component: resolve => require(['../views/appointment/AppointTips'], resolve),
    meta: { requiresAuth: true, title: '就诊提示' }
  },
  {
    path: '/appointment/select-department',
    component: resolve => require(['../views/appointment/SelectDepartment'], resolve),
    meta: { requiresAuth: true, title: '选择科室' }
  },
  {
    path: '/appointment/select-doctor',
    component: resolve => require(['../views/appointment/SelectDoctor'], resolve),
    meta: { requiresAuth: true, title: '选择医生' }
  },
  {
    path: '/appointment/doctor-info',
    component: resolve => require(['../views/appointment/DoctorInfo'], resolve),
    meta: { requiresAuth: true, title: '医生主页' }
  },
  {
    path: '/appointment/doctor-more',
    component: resolve => require(['../views/appointment/DoctorMore'], resolve),
    meta: { requiresAuth: true }
  },
  {
    path: '/appointment/confirm-appoint',
    component: resolve => require(['../views/appointment/ConfirmAppoint'], resolve),
    meta: { requiresAuth: true, title: '预约确认' }
  },
  {
    path: '/appointment/appoint-pay',
    component: resolve => require(['../views/appointment/AppointPay'], resolve),
    meta: { requiresAuth: true }
  },
  {
    path: '/appointment/appoint-pay-thirdparty',
    component: resolve => require(['../views/appointment/AppointPayThirdparty'], resolve),
    meta: { requiresAuth: true }
  },
  {
    path: '/appointment/appoint-pay-success',
    component: resolve => require(['../views/appointment/AppointPaySuccess'], resolve),
    meta: { requiresAuth: true, title: '预约成功' }
  },
  {
    path: '/appointment/history',
    component: resolve => require(['../views/appointment/History'], resolve),
    meta: { requiresAuth: true, title: '我的预约' }
  },
  {
    path: '/appointment/cancel-order',
    component: resolve => require(['../views/appointment/CancelOrder'], resolve),
    meta: {requiresAuth: true, title: '取消预约'}
  },
  {
    path: '/appointment/appoint-detail',
    component: resolve => require(['../views/appointment/AppointDetail'], resolve),
    meta: { requiresAuth: true }
  },
  {
    path: '/appointment/confirm-appoint-success',
    component: resolve => require(['../views/appointment/ConfirmAppointSuccess'], resolve),
    meta: { requiresAuth: true }
  },
  {
    path: '/appointment/payOnline',
    component: resolve => require(['../views/appointment/payOnline'], resolve),
    meta: { requiresAuth: true, title: '在线支付' }
  },
  {
    path: '/appointment/changeFamily',
    component: resolve => require(['../views/appointment/changeFamily'], resolve),
    meta: { requiresAuth: true, title: '切换就诊人' }
  },
  {
    path: '/appointment/getNumber',
    component: resolve => require(['../views/appointment/getNumber'], resolve),
    meta: { requiresAuth: true, title: '签到取号' }
  },
  {
    path: '/appointment/viewOrder',
    component: resolve => require(['../views/appointment/ViewOrder'], resolve),
    meta: { requiresAuth: true, title: '查看挂号单' }
  }
]
